package com.xx.job.controller.system;


import com.xx.job.service.system.SysRoleDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import com.xx.job.controller.base.BaseController;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author liangcy
 * @since 2021-01-14
 */
@RestController
@RequestMapping("/api/v1")
public class SysRoleDeptController extends BaseController {

    @Autowired
    private SysRoleDeptService sysRoleDeptService;

    @RequestMapping("/roleDeptTreeselect/{roleId}")
    public Map<String,Object> roleMenuTreeselect(@PathVariable Long roleId){
        return sysRoleDeptService.roleDeptTreeselect(roleId);

    }

}

